//
//  TopicModel.m
//  lisure0.1
//
//  Created by xalo on 16/4/21.
//  Copyright © 2016年 Mr.wangYongxu. All rights reserved.
//

#import "TopicModel.h"
#import "authOrUsrModel.h"
#import "CounterListModel.h"

@implementation TopicModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

    if ([key isEqualToString:@"userinfo"]) {

        [self.userinfoModel setValuesForKeysWithDictionary:value];
    }else if([key isEqualToString:@"counterList"]){

        [self.counterListModel setValuesForKeysWithDictionary:value];
    }
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _userinfoModel = [[authOrUsrModel alloc] init];
        _counterListModel = [[CounterListModel alloc] init];
    }
    return self;
}
@end
